package com.huluobo.a2204monthdemo.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.huluobo.a2204monthdemo.R
import com.huluobo.a2204monthdemo.utils.ImageUtils
import com.huluobo.base.bean.HomeGoodsBean

/**
 *  Created by LC on 2024/8/8.
 */
class HomeHotAdapter(list: MutableList<HomeGoodsBean>) :
    BaseQuickAdapter<HomeGoodsBean, BaseViewHolder>(R.layout.item_hot_goods, list) {
    override fun convert(helper: BaseViewHolder, item: HomeGoodsBean) {
        ImageUtils.loadImage(context, item.goods_default_icon, helper.getView(R.id.item_hot_icon_iv))
        helper.setText(R.id.item_hot_desc_iv, item.goods_desc)
    }
}